export default request => ({
  QueryComposePageList: (queryParams, bodyParams) => request({
    url: `/onlcode/lowcode/pageComponent/queryByPage?pageNo=${queryParams.pageNo}&pageSize=${queryParams.pageSize}`,
    method: 'post',
    data: bodyParams
  }),
  SaveComposePageConfig: (data) => request({
    url: '/onlcode/lowcode/pageComponent/saveOrUpdatePageComponent',
    method: 'post',
    data: data
  }),
  DeleteComposePageConfig: (params) => request({
    url: '/onlcode/lowcode/pageComponent/deletePageComponent',
    method: 'get',
    params
  }),
  GetComposeFormComponentList: (data) => request({
    url: '/onlcode/lowcode/formComponent/queryFormComponentList',
    method: 'post',
    data
  }),
  GetComposeTableComponentList: (data) => request({
    url: '/onlcode/lowcode/tableComponent/queryTableComponentList',
    method: 'post',
    data
  }),
  GetComposeShowComponentList: (data) => request({
    url: '/onlcode/lowcode/showComponent/queryShowComponentList',
    method: 'post',
    data
  }),
  GetComposePageDetails: (params) => request({
    url: '/onlcode/lowcode/pageComponent/getPageComponentById',
    method: 'get',
    params
  }),
  PageBindToMenu: (data) => request({
    url: '/onlcode/lowcode/pageComponent/bindMenu',
    method: 'post',
    data
  }),
  SAVE_PAGE_GENERATE_CODE:(params) =>
    request({
      url: `/onlcode/lowcode/pageComponent/generateCode`,
      method: 'post',
      data: params
    })
})
